package com.jshan.blog.mapper;

import com.jshan.blog.base.admin.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @author jshan
* @description 针对表【sys_user(系统用户表)】的数据库操作Mapper
* @createDate 2025-01-16 16:47:01
* @Entity com.jshan.blog.base.admin.entity.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser> {

    @Select("SELECT id, username, nickname,logo, last_login_time FROM sys_user WHERE id=#{userId}")
    SysUser getUserInfoById(@Param("userId") Integer userId);
}




